<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page import="cn.bid.dao.user.UserDao"%>
<%@page import="cn.bid.dao.user.UserDaoI"%>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
</head>
<body>
<%
  long id=Long.parseLong(request.getParameter("id"));
  out.print("要删除编号为"+id+"的用户");
  UserDaoI userDao=new UserDao();
  int r=userDao.del(id);
  if(r>0){
  	out.print("<script>alert('删除成功');location.replace('users.jsp');</script>");
  	return;
  }else{
  	out.print("<script>alert('删除失败');location.replace('users.jsp');</script>");
  	
  }
 %>
</body>
</html>